<?php
namespace Core\Service;

use Phalcon\Di\Injectable;
use Core\Profiler as CoreProfiler;

class Profiler extends Injectable {

    public function register() {

        if ($this->config->system->profiler) {
            $profiler = new CoreProfiler();
            $this->di->setShared('profiler', $profiler);
        }
        return $this;

    }

}